package heap;

import queue.CandyQueue;

public class CandyPriorityQueue<E extends Comparable<E>> implements CandyQueue<E> {
    private CandyMaxHeap<E> maxHeap;
    
    public CandyPriorityQueue() {
        maxHeap = new CandyMaxHeap();
    }

    @Override
    public int getSize() {
        return maxHeap.getSize();
    }

    @Override
    public boolean isEmpty() {
        return maxHeap.isEmpty();
    }

    @Override
    public void enqueue(E e) {
        maxHeap.add(e);
    }

    @Override
    public E dequeue() {
        return maxHeap.extractMax();
    }

    @Override
    public E getFront() {
        return maxHeap.getMax();
    }

    @Override
    public int getCapacity() {
        return maxHeap.getCapacity();
    }
    
    public static void main(String[] args) {

    }
}
